package org.solar.wechat;


import java.util.Date;

public class Main {

    public static void main(String[] args) throws InterruptedException {
        WechatClient wechatClient = new WechatClient();
        String wechatUuid = wechatClient.getUUID();
        System.out.println("https://login.weixin.qq.com/l/" + wechatUuid);
        while (!Config.HTTP_OK.equals(wechatClient.waitForLogin())) {
            Thread.sleep(3000);
        }
        wechatClient.init();
        wechatClient.sendMsg( "服务启动成功!" + new Date(),  "创业圈");
    }

}